package com.etoak.service;

import com.etoak.common.core.vo.PageVO;
import com.etoak.common.core.vo.ResultVO;
import com.etoak.entity.Ingredients;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author etoak
 * @since 2025-06-30
 */
public interface IngredientsService extends IService<Ingredients> {

    ResultVO add(Ingredients ingredients);
    Ingredients getByName(String name);

    ResultVO<List<Ingredients>> listIngredients(Ingredients ingredients);

    ResultVO<PageVO<Ingredients>> listPage(int pageNum, int pageSize, Ingredients ingredients);

    ResultVO update(int id,Ingredients ingredients);

    ResultVO delete(int id);

    ResultVO<List<Ingredients>> listByType(String type);
}
